/*
 * Class name: ErrorHandler.java
 * Version: 1.0
 * Date: 9.10. 2013
 */
package cz.muni.fi.pa165.soccergamesarchive.errorhandling;

/**
 *
 * @author Michal Ďuriš
 */
public class ErrorHandler {

    public static final int NO_ERROR = 0;

    public static final int NULL_VALUE_ERROR = 1;
    public static final int INCORRECT_ID_ERROR = 2;
    public static final int INCOMPLETE_RECORD_ERROR = 3;

    public static final int ILLEGAL_VALUE_ERROR = 17;
    public static final int RUNTIME_ERROR = 18;

    private static final String ERROR_MESSAGE_ITEMS_DELIMITER = "->";

    public ErrorHandler() {
    }

    public static String createErrorMessage(String className, int errorType) {
        return className + ERROR_MESSAGE_ITEMS_DELIMITER + errorType;
    }

}
